home *** CD-ROM | disk | FTP | other *** search
/ Super PC 34 / Super PC 34 (Shareware).iso / spc / UTIL / DJGPP2 / V2 / DJLSR200.ZIP / src / libc / ansi / stdlib / system.txh < prev   
Encoding:
Text File  |  1995-07-10  |  826 b   |  34 lines

  1. @node system, process
  2. @subheading Syntax
  3.  
  4. @example
  5. #include <stdlib.h>
  6.  
  7. int system(const char *cmd);
  8. @end example
  9.  
  10. @subheading Description
  11.  
  12. This function runs the specified command.  When calling programs
  13. compiled by djgpp this function will not use command.com and so
  14. will not be subject to its 126 character limit on command lines.
  15.  
  16. Command lines and pipes( i.e., the use of "<", ">", ">>", and "|")
  17. will be simulated internally in this function.
  18.  
  19. Command.com will only be invoked to run commands internal to it,
  20. or to run batch files.  In these cases, the returned error code
  21. will always be zero, since command.com always exits with code 0.
  22.  
  23. @subheading Return Value
  24.  
  25. The return value of the child process.
  26.  
  27. @subheading Example
  28.  
  29. @example
  30. system("cc1plus.exe @@cc123456.gp");
  31. @end example
  32.  
  33.  
  34.